package com.wulijie.state;

/**
 * @Author cui
 * @Data
 */
public class RaffleActivity {
    private State state;

    State canGet = new CanGetGift(this);
    State noCanGet = new NoCanGetGift(this);

    public RaffleActivity() {
        this.state = noCanGet;
    }

    public void wantGetGift() {
        this.state.isOk();
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public State getCanGet() {
        return canGet;
    }

    public void setCanGet(State canGet) {
        this.canGet = canGet;
    }

    public State getNoCanGet() {
        return noCanGet;
    }

    public void setNoCanGet(State noCanGet) {
        this.noCanGet = noCanGet;
    }
}
